/****
author : sailing
date: 2016/12/22
*****/
<style lang='less'>
.mainS {
  width: 100%;
  position: relative;
}
</style>
<template>
 <div class="mainS">
   <ul>
     <li>
       <ftable></ftable>
     </li>
   </ul>
   <input @change = 'changeUpload($event)' style='display:none' type='file' id='uploadFiber' />
 </div>
</template>

<script>
import ftable from './ftable'
import eventBus from '../../eventBus'
import upload from '../../server/upload'
export default {
  data () {
    return {
      uploadLen: '0'
    }
  },
  methods: {
    addFiber () {
      eventBus.bus.$emit('addFiber')
    },
    changeUpload (e) {
      var files = e.target.files
      upload.load(this, files[0])
      console.log('eeeeeeeeeeeeee:', e.target.files)
    },
    uploadFiber () {
      const uploadD = document.getElementById('uploadFiber')
      uploadD.click()
    }
  },
  components: {
    ftable
  }
}
</script>
